<?php $this->headStyle()->captureStart()?>
    #content td { padding:5px}
    #content table { border:1px #aaa solid; padding:5px; width:100%}
    #content th {font-weight:bold;}

<?php $this->headStyle()->captureEnd()?>
<table id="company">
    <tr>
        <th>From</th>
        <td><?php echo $this->message->fo['email']?></td>
    </tr>
    <tr>
        <th>To</th>
        <td><?php echo $this->message->to?></td>
    </tr>
    <tr>
        <th>Subject</th>
        <td><?php echo $this->message->subject?></td>
    </tr>
    <tr>
        <th>Message</th>
        <td><?php echo $this->message->message_txt?></td>
    </tr>
    <tr>
        <th>Date</th>
        <td><?php echo date(MEDIUM_DATE_FORMAT, $this->created_at)?></td>
    </tr>
    <tr>
        <td colspan="2">
		<?php if(!empty($this->message->st) && $this->message->st==3):?>
			<form action="<?php echo $this->geturl('send', 'message', null, 'admin1')?>" method="POST">
				
				<input type="hidden" value="<?php echo $_GET['id'];?>" name="id">
				<input type="submit" name="send" value="SEND">
			</form>
			<form action="<?php echo $this->geturl('delete', 'message', null, 'admin1')?>" method="POST">
				
				<input type="hidden" value="<?php echo $_GET['id'];?>" name="id">
				<input type="submit" name="send" value="DELETE">
			</form>
		<?php endif;?>
		</td>
    </tr>
</table>
